<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
		for (var i =100; i<999; i++) {
			var a=parseInt(i/100);
			var b=parseInt(i%100/10);
			var c=parseInt(i%10);
			if (i==a*a*a+b*b*b+c*c*c) {
				console.log(i);	
			}
		}
	</script>
</body>
</html>